<script>



    function afterShowForm(e,isEdit){
        $("#s_type").attr("title","客户端用的活动标识，用来判断该活动的类型，比如nmrq").tooltip({container:'body'});
        $("#s_id").attr("title","周期性的活动，这个填入该周期ID,如赛季ID等").tooltip({container:'body'});
        $("#s_arg1").attr("title","给客户端用的魔法参数1").tooltip({container:'body'});
        $("#s_arg2").attr("title","给客户端用的魔法参数2").tooltip({container:'body'});
    }

    var NewsColModel = [
        {label: '活动类型', name: 's_type',width: 80, editable: true, sortable:false,hidden:false,resize:true,fixed:false,search:false},
        {label: '活动ID', name: 's_id',width: 80, editable: true, sortable:false,hidden:false,resize:true,fixed:false,search:false},
        {label: '活动参数1', name: 's_arg1',width: 80, editable: true, sortable:false,hidden:false,resize:true,fixed:false,search:false},
        {label: '活动参数2', name: 's_arg2',width: 80, editable: true, sortable:false,hidden:false,resize:true,fixed:false,search:false},
    ];
    var NewNavbar = [
        {
            title:"配置数据",
            caption:"",
            position : "last",
            buttonicon:"octicon-gear",
            onClickButton: function(){
                var id=$(grid_selector).jqGrid("getGridParam","selrow");
                if(!id){
                    return layer.alert('请先选择一行数据');
                }
                var data = $(grid_selector).jqGrid("getRowData",id);
                var name = "配置数据 --> "+data['name'];
                var index = cosjs.layer.show(name,GURL('branch/active','index?pid='+id+'&key=item'));
                layer.full(index);
            }
        }
    ]

</script>

